package com.cdtu.vo;

import com.cdtu.entity.Certify;
import com.cdtu.entity.Speciality;
import com.cdtu.entity.Task;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author : Sakura
 * @Date : 2023/1/14 11:07
 */
@Data
public class UserVO {
    private long id;
    private String name;
    private String ethnic;
    private String vocation;//职业
    private String phone;
    private String homeAddress;
    private String comAddress;
    private String idCard;
    private List<SpecialityVO> speciality;//{ type: 'success', label: '运输' },
    private List<String> certify;// ['证书1', '证书2', '证书3']
    private List<String> tasks;// ['任务1', '任务2', '任务3'],
    private String grade = "c";
    private Integer workHour;
    private List<String> access;
    private int sex;
    private Integer age;
    private String username;
    private String checkUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date regTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
